<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
        <ul>
            {% for row in user_list %}
{#                <li>{{ row }} | <a href="/edit/{{ row }}/">编辑</a></li>#}
                <li>{{ row }} | <a href="{% url 'name2' row %}">编辑</a></li>
            {% endfor %}
        </ul>
</body>
</html>